{extend name="layout/index" /}

{block name="search"}
{/block}

{block name="table"}
<table class="table">
	<thead>
		<tr>
			<!--<th>编号</th>-->
			<th>{$tables['fields']['name']['name']}</th>
			<th>{$tables['fields']['url']['name']}</th>
			<!--<th>{$tables['fields']['ico']['name']}</th>-->
			<th>{$tables["fields"]["target"]["name"]}</th>
			<th>{$tables['fields']['status']['name']}</th>
			<th>{$tables["fields"]["navigation"]["name"]}</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>

	{foreach $classs as $key=>$vo } 
	<tr>
		<!--<td>{$vo.id}</td>-->
		<td>{:echolevel($vo.level,'　　','╠')}&nbsp;{$vo.name}</td>
		<td>{$vo.url}</td>
		<!--<td>{$vo.ico}</td>-->
		<td>{$vo["target"]}</td>
		<td>{$vo.status}</td>
		<td>{$vo["navigation"]}</td>
		<td >

			{if checkurl($now_route['controller'].'/read')}
			<a href="{:url('read',array('id'=>$vo['id']))}" title="浏览"><i class="fa fa-lg fa-fw fa-eye"></i></a>
			{/if}

			{if checkurl($now_route['controller'].'/edit')}
			<a href="{:url('edit',array('id'=>$vo['id']))}" title="修改"><i class="fa fa-lg fa-fw fa-edit"></i></a>
			{/if}

			{if checkurl($now_route['controller'].'/delete')}
			<a href="javascript:;" data-href="{:url('delete',array('id'=>$vo['id']))}" title="删除" class="delete">
				<i class="fa fa-lg fa-fw fa-trash-o"></i>
			</a>
			{/if}

		</td>
	</tr>
	{/foreach}

	</tbody>
</table>
{/block}
{block name="paginate"}
{/block}
